<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>{$info['id']?'编辑':'回复'}留言板</h2>
    </div>
    <volist name="list" id="vo">
        <form action="{:U('save')}" method="post" class="form-horizontal">
            <input type="hidden" name="id" value="{$vo.id}">


            <div class="form-item">
                <label class="item-label">留言标题：{$vo.title}</label>

            </div>
            <div class="form-item">
                <label class="item-label">留言内容：</label>
                <div class="controls">
                    <textarea  class="textarea input-large" name="content" rows="10" onfocus=this.blur() >{$vo.content}</textarea>
                </div>
            </div>
            <div class="controls">
                <label class="item-label">留言状态<span class="check-tips"></span></label>
                <label class="inline radio"><input name="status" value="0" type="radio" onfocus=this.blur() <eq name="data['status']" value="1"></eq> >已留言</label>
                <label class="inline radio"><input name="status" value="1" type="radio" <eq name="data['status']" value="2"></eq>>已回复</label>
                <label class="inline radio"><input name="status" value="2" type="radio" <eq name="data['status']" value="3"></eq>>留言无效</label>
            </div>

            <div class="form-item">
                <label class="item-label">回复内容<span class="check-tips"></span></label>
                <div class="controls">
                    <textarea  class="textarea input-large" name="reply_content" rows="10" >{$vo.reply_content}</textarea>
                </div>
            </div>


            <div class="form-item">

                <button class="btn submit-btn" id="submit" type="submit" target-form="form-horizontal">回复</button>
                <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
            </div>

        </form>
    </volist>
</block>